﻿using SD.Infrastructure.EntityBase;
using System;

namespace SlamDunk.MES.Domain.Entities.ResourceContext
{
    /// <summary>
    /// 设备相关设备类
    /// </summary>
    public class EquipmentRelatedClass : PlainEntity
    {
        #region # 构造器

        #region 00.无参构造器
        /// <summary>
        /// 无参构造器
        /// </summary>
        protected EquipmentRelatedClass() { }
        #endregion

        #region 01.创建设备相关设备类构造器
        /// <summary>
        /// 创建设备相关设备类构造器
        /// </summary>
        /// <param name="equipmentClassId">设备类Id</param>
        public EquipmentRelatedClass(Guid equipmentClassId)
            : this()
        {
            this.EquipmentClassId = equipmentClassId;
        }
        #endregion

        #endregion

        #region # 属性

        #region 设备类Id —— Guid EquipmentClassId
        /// <summary>
        /// 设备类Id
        /// </summary>
        public Guid EquipmentClassId { get; private set; }
        #endregion

        #region 导航属性 - 设备 —— Equipment Equipment
        /// <summary>
        /// 导航属性 - 设备
        /// </summary>
        public virtual Equipment Equipment { get; internal set; }
        #endregion

        #endregion
    }
}
